package com.mass.core.sys.dict.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.mass.core.sys.dict.model.SysDictType;

import java.util.List;

/**
 * annotation：DictType dao层增删改查接口
 * created by pannan on 2017/08/25
 * 
 */
@Mapper
public interface SysDictTypeMapper {
   /**
    *
    * @mbg.generated
    */
   int delete(Long id);

   /**
    *
    * @mbg.generated
    */
   int insert(SysDictType sysDictType);

   /**
    *
    * @mbg.generated
    */
   SysDictType getEntityById(Long id);

   /**
    *
    * @mbg.generated
    */
   int update(SysDictType sysDictType);
    /**
     *根据词典类型 编码查询
     *@param typeCode  编码
     **/
    SysDictType getByTypeCode(@Param("typeCode") String typeCode);

    /**
     *查询全部词典类型
     **/
    List<SysDictType>  selectAll();
}
